package com.cmc.cloud.cmclink.doc.vo.superwhitelistvo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 有条件接载清单(DG) Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
public class SuperWhitelistDgBaseVO {

    @Schema(description = "特种货类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotBlank(message = "{SuperWhitelistDgBaseVO.specialCargoType.notBlank}")
    @Length(max = 20, message = "{SuperWhitelistDgBaseVO.specialCargoType.length}")
    private String specialCargoType;

    @Schema(description = "超级白名单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{SuperWhitelistDgBaseVO.praNo.notBlank}")
    @Length(max = 20, message = "{SuperWhitelistDgBaseVO.praNo.length}")
    private String praNo;

    @Schema(description = "危险货物分类", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "危险货物分类不能为空")
    @Length(max = 20, message = "危险货物分类支持最大长度{max}")
    private String imoClass;

    @Schema(description = "包装组别", requiredMode = Schema.RequiredMode.REQUIRED)
    @Length(max = 50, message = "包装组别支持最大长度{max}")
    private String packingGroup;

    @Schema(description = "危险货物编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "危险货物编号不能为空")
    @Length(max = 20, message = "危险货物编号支持最大长度{max}")
    private String unNo;

    @Schema(description = "接货地(多个)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{SuperWhitelistDgBaseVO.pors.notBlank}")
    @Length(max = 50, message = "{SuperWhitelistDgBaseVO.pors.length }")
    private String pors;

    @Schema(description = "装货港(多个)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{SuperWhitelistDgBaseVO.pols.notBlank}")
    @Length(max = 50, message = "{SuperWhitelistDgBaseVO.pols.length}")
    private String pols;

    @Schema(description = "卸货港(多个)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{SuperWhitelistDgBaseVO.pods.notBlank}")
    @Length(max = 50, message = "{SuperWhitelistDgBaseVO.pods.length}")
    private String pods;

    @Schema(description = "目的地(多个)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{SuperWhitelistDgBaseVO.dels.notBlank}")
    @Length(max = 50, message = "{SuperWhitelistDgBaseVO.dels.length}")
    private String dels;

    @Schema(description = "船舶(多个)")
    @Length(max = 255, message = "{SuperWhitelistDgBaseVO.vesselCodes.length}")
    private String vesselCodes;

    @Schema(description = "航线(多个)")
    @Length(max = 255, message = "{SuperWhitelistDgBaseVO.laneCodes.length}")
    private String laneCodes;

    @Schema(description = "文件id", example = "4118")
    private Long fileId;

    @Schema(description = "备注", example = "你猜")
    @Length(max = 200, message = "{specialCargoBaseVO.remark.length}")
    private String remark;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Schema(description = "创建人")
    private String creator;

    @Schema(description = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @Schema(description = "操作人")
    private String updater;

}
